﻿#include "ChargeGunNotNotConnect.h"
#include "ui_chargegunnotnotconnect.h"

ChargeGunNotNotConnect::ChargeGunNotNotConnect(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ChargeGunNotNotConnect)
{
    ui->setupUi(this);
    time = new QLabel(ui->frameBottom);
    time->setGeometry(10, 10, 200, 40);
    time->setStyleSheet("QLabel{font: 20px; color: rgb(25, 25, 112);}");
    signal = new QLabel(ui->frameBottom);
    signal->setGeometry(700, 18, 41, 22);
    signal->setStyleSheet("QLabel{background-color:transparent;}");

    QDir dir(IMAGE_PATH);
    if(dir.exists())
    {
        ui->frameTop->setStyleSheet(LOGO_STY);
    }


    countdown = new CountDownTime(ui->frameMid);
    countdown->setGeometry(710, 10, 30, 40);
    countdown->mysetText("60");
    connect(this->countdown, SIGNAL(CoundDownTimeisOver()), this, SLOT(countdownOver()));
}

ChargeGunNotNotConnect::~ChargeGunNotNotConnect()
{
    delete ui;
}

void ChargeGunNotNotConnect::on_OKButton_clicked()
{
    stackLayout->setCurrentIndex(cardAndQRCodeVerifyPage);

    /*待完成*/
}
void ChargeGunNotNotConnect::countdownOver()
{
    /*待完成*/
    countdown->CountDownStop();
}
